package com.moli.iov.base.model.dto.res;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;

/**
 * <p>
 * 授权
 * </p>
 *
 * @author zql
 * @date 2020 -02-26 14:49:26
 * @since 2020 /2/21 13:36
 */
@Data
public class AuthDto implements Serializable {

  private static final long serialVersionUID = -4832897116945409968L;

  /**
   * tbox是否已授权
   */
  private boolean isAuth;

  /**
   * 报警监控集合
   */
  private List<Integer> alarmAuths;

  /**
   * New instance auth dto.
   *
   * @return the auth dto
   * @author wanghualin
   */
  public static AuthDto newInstance(){
    AuthDto authDto = new AuthDto();
    authDto.setAuth(false);
    authDto.setAlarmAuths(new ArrayList<>());
    return authDto;
  }
}
